package com.tfswue.hql.entity;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Controller;

import java.util.List;
@Controller  //将类交给spring管理
//主要作用是将配置文件中的属性映射到该类中，参数是prefixx属性的前缀,前缀
@ConfigurationProperties(prefix = "app.user")

//@NoArgsConstructor  自动生成无参构造函数
//@AllArgsConstructor 自动生成全参构造函数
public class User {
    private Integer id;
    private String username;
    private List<String> address;
    private List<Grade> grades;
}
class Grade {
    private String subject;
    private String score;
}
